import request from '@/api/index.js'

const shoppingCartService = {
  list: (params) => {
    return request.get('/ware/shoppingcart/listShopping', params)
  },
  add: (data) => {
    return request.post('/ware/shoppingcart', data)
  },
  remove: (id) => {
    return request.delete(`/ware/shoppingcart/${id}`)
  },
  submitCart: (id) => {
    return request.get(`/ware/shoppingcart/submitCart/${id}`)
  },
}

export default shoppingCartService
